package cn.tedu.front.search.pojo.po;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;


import java.io.Serializable;
import java.lang.annotation.Documented;

/**
 * 公司索引
 */
@Data
@Document(indexName = "company_search")
public class CompanyPO implements Serializable {
    //公司id
    @Id
    private Long id;
    //公司名
    @Field(type = FieldType.Text, analyzer = "ik_smart")
    private String companyName;
    //公司简介
    @Field(type = FieldType.Text, analyzer = "ik_smart")
    private String companyDescription;
    //关键字
    @Field(type = FieldType.Text, analyzer = "ik_smart")
    private String keyword;
    @Field(type = FieldType.Text, analyzer = "ik_max_word")
    private String companyPosition;


}
